--
-- Created by IntelliJ IDEA.
-- User: liuqing
-- Date: 2015/11/17
-- Time: 23:16
-- To change this template use File | Settings | File Templates.
--
local v = redis.call('get',KEYS[1]);
if v
then return v;
else redis.call('set',KEYS[1],ARGV[1]);return ARGV[1];
end

